Skip to content

6.x: Document attribute-based event listeners - #8345

Open
josbeir wants to merge 2 commits into
6.xfrom
docs-event-listener-attributes
Open

josbeir wants to merge 2 commits into
6.xfrom
docs-event-listener-attributes

Conversation

@josbeir

@josbeir josbeir commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Documents the attribute-based event listeners introduced in cakephp/cakephp#19469 for CakePHP 6.0.

The Events guide now covers method- and class-level attributes, repeatable subscriptions, callable resolution, priorities, discovery and registration, constructor dependency injection, named event managers, and registration errors and deduplication. Listener registration is organized into listener classes, attribute-based listeners, and anonymous listeners. The Attribute Resolver and 6.0 migration guides link to the new section.

Validation:

  • Documentation build, Markdown lint, spelling, internal links, and whitespace checks passed.
  • All nine new PHP snippets passed syntax checks and executed in three isolated runtime scenarios, with 19 checks covering discovery, registration, application bootstrap, dependency injection, and named-manager dispatch.
  • The feature PR's test suite passed: 24 tests, 40 assertions.
  • Generated HTML headings and cross-links were checked; visual browser preview was unavailable.

@markstory markstory added this to the 6.x milestone Oct 4, 2026
Comment thread docs/en/core-libraries/attribute-resolver.md Outdated
Comment thread docs/en/core-libraries/events.md Outdated
Comment thread docs/en/core-libraries/events.md Outdated
@josbeir

josbeir commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

@markstory reviews addressed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants